<?php
require './include/common.inc.php';
require 'category.class.php';
require 'content.class.php';
include_once 'type.class.php';
$type = new type();
$site_id = get_current_site();
$category = new category();
$category_single = $category->path_get_category($path);
if(empty($category_single))
{
    raise404();
}
$catid = $category_single['catid'];

$page = @get_null($page, 1);
$page = str_replace('.html', '', $page);
if($page == 0)
{
    $page = 1;
}
$template = $CATEGORY[$catid]['l_temp'];
if(empty($category_single['url']))
{
    showmessage('没有该栏目，可能以删除');
}
$cat_url_tmp = explode('/', $category_single['url']);
$top_url = $cat_url_tmp[0].'/';
if($top_url == $category_single['url'])
{
    $top_catid = $catid;
    $top_category_single = $category_single;
}
else
{
    $top_category_single = $category->path_get_category($top_url);
    $top_catid = $top_category_single['catid'];
}
$ishtml = true;//分页显示html链接
$page_title =  $category_single['catname'] .'  --  '. $site_conf->get('SITE_NAME');
$css_file = 'chl.css';
include template('default', $template);
?>